package model.datastructure;

public class Block2D extends AbstractBlock {

	public static final int top = 0;

	public static final int right = 1;

	public static final int bottom = 2;

	public static final int left = 3;

	//private final char emptyChar = 0;

	public Block2D( BlockType2D blocktype ) {
		super( new Position2D(), blocktype );
	}

	public char getCharAt( int x, int y, int rotation ) {
		BlockType2D blockType = ( BlockType2D ) mBlockType;
		return blockType.getCharAt( x, y, rotation );
	}

	@Override
	public BlockType2D getBlockType() {
		return ( BlockType2D ) mBlockType;
	}

	@Override
	public Position2D getPosition() {
		// TODO Auto-generated method stub
		return ( Position2D ) super.getPosition();
	}

}